package com.RecipeBook.main;

import java.util.ArrayList;

import com.RecipeBook.browse.DataBaseHelper;
import com.RecipeBook.common.Recipe;
import com.RecipeBook.common.RecipeInProgress;

// To use, simply call 'GlobalsManager.getGlobals().getWhatever()'.
// Should be persistent across all activities and views.
public class GlobalsManager {
	
	private static final GlobalsManager INSTANCE = new GlobalsManager();
	private ArrayList<RecipeInProgress> recipesInProgress;
	private DataBaseHelper dbHelper = null;
	
    private GlobalsManager() {
    	recipesInProgress = new ArrayList<RecipeInProgress>();
    }

	public static GlobalsManager getGlobals() {
		return INSTANCE;
	}
	
	public ArrayList<RecipeInProgress> getRecipesInProgress() {
		return recipesInProgress;
	}
	
	public void setDatabaseHelper (DataBaseHelper dh) {
		dbHelper = dh;
	}
	
	public DataBaseHelper getDatabaseHelper() {
		return dbHelper;
	}
	
}
